Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(weather_status): Pass address as param to OSM API #38665

Merged
merged 1 commit into from
Jun 25, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jun 6, 2023

Summary

For some addresses the location can not be fetched although the address is correct.
For example Bruxelles will fetch the forecast initially but when adding it as a favorite and selecting it, it does not work because the address is saved as Ville de Bruxelles - Stad Brussel, België / Belgique / Belgien which contains the / character.

This is simply solved by passing the address as the query parameter (as the OSM documentation states).

Screenshots (screen cast gifs)

before after
before after

Checklist

@susnux susnux added this to the Nextcloud 28 milestone Jun 6, 2023
@susnux susnux requested review from julien-nc, a team, ArtificialOwl, icewind1991 and blizzz and removed request for a team June 6, 2023 10:59
@susnux
Copy link
Contributor Author

susnux commented Jun 6, 2023

/backport to stable27

@susnux susnux changed the title fix(weather_status): Pass address as param fix(weather_status): Pass address as param to OSM API Jun 6, 2023
@susnux susnux requested a review from nfebe June 14, 2023 14:50
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@tcitworld
Copy link
Member

This also fixes another issue caused by Nominatim changing their API, see osm-search/Nominatim#3134 and nextcloud/maps#1111

Can we backport to stable26 and 25?

@susnux
Copy link
Contributor Author

susnux commented Aug 16, 2023

/backport to stable26

@susnux
Copy link
Contributor Author

susnux commented Aug 16, 2023

/backport to stable25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants